package com.itbac.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2020/9/6 21:32
 */
@RestController
public class MemberService {

    @Value("${server.port}")
    private String serverPort;

    //http://127.0.0.1:8081/getUser?userId=1
    @RequestMapping("/getUser")
    public String getUser(){
        return "会员系统端口号:" + serverPort;
    }
}
